package cn.com.shaobing.data.rest.service;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import cn.com.shaobing.data.rest.entity.People;

/**
 * @author pez1420@gmail.com
 * @version $Id: PeopleResitory.java v 0.1 2017/9/30 14:18 luyb Exp $$
 */
@RepositoryRestResource(collectionResourceRel = "people", path = "people")
public interface PeopleResitory extends PagingAndSortingRepository<People, Long> {

    /**
     *  根据fisrtName查询People
     *  
     * @param firstName String
     * @return  People
     */
    People findByFirstName(@Param("firstName") String firstName);
}
